Returns true if the template is still fresh.

@see TwigLoaderInterface::isFresh()

@param  string  $name The template name.
@param  integer $time The last modification time of the cached template.
@return boolean
962411
public function isFresh($name, $time)
    {
        $file = $this->findTemplateFile($name);
        $fresh = (filemtime($file) <= $time);
        return $fresh;
    }
112769
public function jsonCacheStart( $name, $language = '', $cache_timer=900 ) 
	{
		$cache_folder = $this->app->config('cache.path')."/json/";
		$cache_name   = md5($name.$language).".json";
	
		$ntime = strtotime( date("Y-m-d H:i:s") );
		$ftime = @filemtime( $cache_folder.$cache_name );
	
		$product = $ntime-$ftime;
	
		if((int)$cache_timer > (int)$product && $ftime!=false ) {   // 100 <17 //
			return json_decode( $this->jsonCacheUnCompress( file_get_contents( $cache_folder.$cache_name ) ), true ); // returns array in the event cache data is to be used
		} else {
			return true; // returns true in the event that the timer has expired
		}
	}
1172256
public function isUsed(string $name): bool
    {
        if (in_array($name, $this->usages)) {
            return true;
        }

        foreach ($this->children as $child) {
            if (!$child->isIsolated() && $child->isUsed($name)) {
                return true;
            }
        }

        return false;
    }
1226521
public function __isset( $name ) {
		$func = "get_{$name}";
		if ( method_exists( $this, $func ) ) {
			return true;
		}
		$func = "is_{$name}";
		if ( method_exists( $this, $func ) ) {
			return true;
		}

		return isset( $GLOBALS[ $name ] );
	}
1108422
public function hasChanged($name)
    {
        if ($this->hasOldAttribute($name) && $this->hasNewAttribute($name)) {
            return $this->getOldAttribute($name) != $this->getNewAttribute($name);
        } else {
            // Unknown attribute
        }
    }
378295
public function isSaved( string $name ): bool
	{
		return $this->load($name) !== false || $this->memcached->getResultCode() !== \Memcached::RES_NOTFOUND;
	}
438934
public function isDirty($name)
    {
        /** @type Field_Base $field */
        $field = $this->getElement($name);

        return $this->dirty[$name] ||
            (!$this->loaded() && $field->has_default_value);
    }
1055273
public function flush($name)
    {
        if ((new SupportsCacheTags())->isSatisfiedBy($this->cache)) {
            $this->cache->tags(CacheKey::get($name))->flush();
        }
    }
1224105
public function __isset($name)
    {
        return array_key_exists($name, $this->_data) || array_key_exists($name, self::$_globalData);
    }
876329
protected function isDBTemp($name)
    {
        $prefix = Environment::getEnv('SS_DATABASE_PREFIX') ?: 'ss_';
        $result = preg_match(
            sprintf('/^%stmpdb_[0-9]+_[0-9]+$/i', preg_quote($prefix, '/')),
            $name
        );
        return $result === 1;
    }
882286
public function isExpired($key, $time)
    {
        return $this->getCreatedTime($key) + $this->getTtl($key) < $time;
    }
217535
public function rm(string $name): bool
    {
        $this->writeTimes++;

        try {
            return $this->unlink($this->getCacheKey($name));
        } catch (\Exception $e) {
            return false;
        }
    }
790137
public static function csrfExpirated($time = null)
    {
        if (Session::getInstance()->has('__bow.csrf')) {
            return false;
        }

        if ($time === null) {
            $time = time();
        }

        $csrf = Session::getInstance()->get('__bow.csrf');

        if ($csrf['expirate'] >= (int) $time) {
            return true;
        }

        return false;
    }
1020106
public function isFresh($url, $time)
    {
        if($file = $this->locate($url)) {
            return (bool) filemtime($file) < $time;
        }

        return false;
    }
863307
public function __isset($name)
	{
		if (method_exists($this, 'get_' . $name) || isset($this->$name))
		{
			return true;
		}
		else
		{
			return false;
		}
	}
724450
public static function flush($name = null) {
		$_this = static::getInstance();

		if (isset($_this->_adapterConfig[$name])) {
			unset($_this->_adapterConfig[$name]);

			return true;
		}

		return false;
	}
310376
public function hasConcreteMethod($name) {
    if (!array_key_exists($name,$this->methods)) {
      return FALSE;
    }
    $method = $this->getMethod($name);
    
    return !$method->getDeclaringClass()->isInterface();
  }