better condition to check if schedule exists