protected function areWeInRange($startDate, $endDate){
        return (empty($startDate) || date_create() >= $startDate)
        && (empty($endDate) || date_create() <= $endDate);
    }
protected function areWeInRange($startDate, $endDate){
        return (empty($startDate) || date_create() >= $startDate)
        && (empty($endDate) || date_create() <= $endDate);
    }
protected function areWeInRange ( $ startDate , $ endDate ) { return ( empty ( $ startDate ) || date_create ( ) >= $ startDate ) && ( empty ( $ endDate ) || date_create ( ) <= $ endDate ) ; }
Check if the date are in range
@param type $startDate
@param type $endDate
@return boolean true if in range
Check if the date are in range