public function requirementExistsForComponent( $component ) {
		foreach ( $this->requirements as $requirement ) {
			if ( $requirement->component() === $component ) {
				return true;
			}
		}

		return false;
	}
public function requirementExistsForComponent( $component ) {
		foreach ( $this->requirements as $requirement ) {
			if ( $requirement->component() === $component ) {
				return true;
			}
		}

		return false;
	}
public function requirementExistsForComponent ( $ component ) { foreach ( $ this -> requirements as $ requirement ) { if ( $ requirement -> component ( ) === $ component ) { return true ; } } return false ; }
Determines whether or not a requirement exists for a particular component.

@param string $component The component to check for.

@return bool Whether or not the component has a requirement defined.
Determines whether or not a requirement exists for a particular component .