@param string $src
@param string $name

@return bool
183863
private function check_cache( $src, $name ) {
		$name  = $name . '_minify_cache';
		$hash  = sha1( $src );
		$cache = $this->app->get_shared_object( $name, 'all' );
		if ( $cache ) {
			if ( isset( $cache[ $hash ] ) ) {
				return true;
			}
		} else {
			$cache = [];
		}
		$cache[ $hash ] = true;
		$this->app->set_shared_object( $name, $cache, 'all' );

		return false;
	}
605074
public static function script($src, array $attrs = [])
    {
        $attrs = array_merge([
            'src' => $src
        ], $attrs);

        return static::tag('script', null, $attrs);
    }
461129
public function has($component, $name)
    {
        $this->load();

        return (bool) mb_strlen($this->get($component, $name));
    }
365152
public function hasDirective($name)
    {
        $inSubDirective = false;

        foreach ($this->directives as $directive) {
            if ($directive->getName() == $name) {
                return true;
            }

            $inSubDirective = $this->hasInnerDirective($name, $inSubDirective, $directive);
        }

        return $inSubDirective;
    }
228575
public function __isset($name)
    {
        switch ($name) {
            case 'rawValue':
                return ($this->rawValue !== null);
                break;
            case 'value':
                return ($this->value !== null);
                break;
            //return true;
        }
        return false;
    }
588079
public function addScript($name, $src, $version = false, $footer = false) {
			$n = $this->getPlugin()->addScript($name, $src, $this->getScriptDependencies(), $version, $footer);

			return $this->addScriptDependency($n);
		}
430405
public function providesMethod($name)
    {
        if (method_exists($this, $name)) {
            return true;
        }
        if ($this->text instanceof Generic) {
            return $this->text->providesMethod($name);
        }
        return false;
    }
648634
public function sendFile($src)
    {
        $pointer = fopen($src, 'r');

        if (!is_resource($pointer)) {
            throw new RuntimeException("Unable to load '$src' for sending.");
        }

        $result = fpassthru($pointer);

        fclose($pointer);

        return $result;
    }
614609
public function hasMethod($name) {
		try {
			$method = new ReflectionMethod($this, $name);
			if (!$method->isPublic() || substr($name, 0, 1) === '_') {
				return false;
			}
			if ($method->getDeclaringClass()->name === 'Shell') {
				return false;
			}
			$installerCommands = $this->ConfigInstaller->getListInstallerCommands(false);
			$defaultCommands = ['main' => null];
			$commands = $installerCommands + $defaultCommands;
			if (!array_key_exists($name, $commands)) {
				return false;
			}

			return true;
		} catch (ReflectionException $e) {
			return false;
		}

		return true;
	}
1051002
public function __isset($name)
	{
		$getter='get'.$name;
		if (property_exists($this->getSlave(),$name)) {
			return true;
		}
		elseif (method_exists($this->getSlave(),$getter)) {
			return true;
		}
		return parent::__isset($name);
	}
1010655
public static function class_loader($name) {
        if (strncmp(__NAMESPACE__ . '\\', $name, self::$len) !== 0) {
            return false;
        }
        $name = substr($name, self::$len);
        $file_path = __DIR__ . '/' . str_replace('\\', '/', $name) . '.php';
        if (file_exists($file_path) && is_readable($file_path)) {
            include($file_path);
            return true;
        }
        return false;
    }
532969
public function rm($name) {
        $name  = $this->options['prefix'].sqlite_escape_string($name);
        $sql  = 'DELETE FROM '.$this->options['table'].' WHERE var=\''.$name.'\'';
        sqlite_query($this->handler, $sql);
        return true;
    }
377045
public static function isTypeImplemented(string $name): bool
    {
        $namespace = '\\Badcow\\DNS\\Rdata\\';
        $name = strtoupper($name);

        return class_exists($namespace.$name) || class_exists($namespace.'DNSSEC\\'.$name);
    }
740652
public function hasAttribute($name)
    {
        if(strlen($name) < 1)
        {
            throw new HTMLTagException("Attribute name is empty");
        }

        return (isset($this->tag_attributes[strtolower($name)])) ? true : false;
    }
346264
public function exist($name){
		$name=strtolower($name);
		return (isset($this->events[$name]) && sizeof($this->events[$name]));
	}
519707
public function setSrc($src)
    {
        if (Format::isUri($src) === true) {
            $this->src = $src;
        } else {
            $msg = "The 'src' argument must be a valid URI, '" . $src . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
652466
public static function delete($src) {

    $filePath = $_SERVER['DOCUMENT_ROOT'] . $src;
    // Check if file exists.
    if (file_exists($filePath)) {
      // Delete file.
      return unlink($filePath);
    }

    return true;
  }