Checks if a requirement is set for the given key.
string $key A variable name:
Boolean true if a requirement is specified, false otherwise
public function hasRequirement($key) { return array_key_exists($key, $this->requirements); }