public function isVisitTime($timestamp = null)
    {
        $timestamp = is_int($timestamp) ? $timestamp : time();
        foreach ($this->times as $time) {
            if ($this->isBetween($timestamp, $time['from'], $time['to'], 'Hi')) {
                return true;
            }
        }
        return empty($this->times);
    }
public function isVisitTime($timestamp = null)
    {
        $timestamp = is_int($timestamp) ? $timestamp : time();
        foreach ($this->times as $time) {
            if ($this->isBetween($timestamp, $time['from'], $time['to'], 'Hi')) {
                return true;
            }
        }
        return empty($this->times);
    }
public function isVisitTime ( $ timestamp = null ) { $ timestamp = is_int ( $ timestamp ) ? $ timestamp : time ( ) ; foreach ( $ this -> times as $ time ) { if ( $ this -> isBetween ( $ timestamp , $ time [ 'from' ] , $ time [ 'to' ] , 'Hi' ) ) { return true ; } } return empty ( $ this -> times ) ; }
Is visit-time

@param int|null $timestamp
@return bool
Is visit - time