code: private function is_scheduled( $name ) {
  		$crons = _get_cron_array();
  		
  		if ( empty( $crons ) ) {
  			return false;
  		}
  
  		foreach ( $crons as $cron ) {
  			if ( isset( $cron[ $name ] ) ) {
  				return true;
  			}
  		}
  
  		return false;
  	}
docs: Check if the event is scheduled
  
  @param string $name
  @param array $crons
  @return bool