Fix php warning when checking for scheduler worker existence