public function hasPackage($package_name)
    {
        if (!isset($this->packages_instances[$package_name])) {
            try {
                $this->packages_instances[$package_name] = $this->_buildNewPackage($package_name);
            } catch (\Exception $e) {
            }
        }
        return isset($this->packages_instances[$package_name]);
    }
public function hasPackage($package_name)
    {
        if (!isset($this->packages_instances[$package_name])) {
            try {
                $this->packages_instances[$package_name] = $this->_buildNewPackage($package_name);
            } catch (\Exception $e) {
            }
        }
        return isset($this->packages_instances[$package_name]);
    }
public function hasPackage ( $ package_name ) { if ( ! isset ( $ this -> packages_instances [ $ package_name ] ) ) { try { $ this -> packages_instances [ $ package_name ] = $ this -> _buildNewPackage ( $ package_name ) ; } catch ( \ Exception $ e ) { } } return isset ( $ this -> packages_instances [ $ package_name ] ) ; }
Test if a package exists

@param   string $package_name
@return  bool
Test if a package exists