src/Container.php
public function has($class) {
		if (isset($this->singletons[$class])) {
			return true;
		}

		if (isset($this->aliases[$class])) {
			$class = $this->aliases[$class];
		}

		try {
			$this->getReflectionClass($class);
		} catch (Exception $e) {
			return false;
		}

		return true;
	}
public function has($class) {
		if (isset($this->singletons[$class])) {
			return true;
		}

		if (isset($this->aliases[$class])) {
			$class = $this->aliases[$class];
		}

		try {
			$this->getReflectionClass($class);
		} catch (Exception $e) {
			return false;
		}

		return true;
	}
public function has ( $ class ) { if ( isset ( $ this -> singletons [ $ class ] ) ) { return true ; } if ( isset ( $ this -> aliases [ $ class ] ) ) { $ class = $ this -> aliases [ $ class ] ; } try { $ this -> getReflectionClass ( $ class ) ; } catch ( Exception $ e ) { return false ; } return true ; }
Check if the class is resolvable.

@param string $class
@return bool
Check if the class is resolvable .