Rework checking botanist state function. Fixes #173