src/Container.php
public function hasRule($id) {
        $id = $this->normalizeID($id);
        return !empty($this->rules[$id]);
    }
public function hasRule($id) {
        $id = $this->normalizeID($id);
        return !empty($this->rules[$id]);
    }
public function hasRule ( $ id ) { $ id = $ this -> normalizeID ( $ id ) ; return ! empty ( $ this -> rules [ $ id ] ) ; }
Determines whether a rule has been defined at a given ID.

@param string $id Identifier of the entry to look for.
@return bool Returns **true** if a rule has been defined or **false** otherwise.
Determines whether a rule has been defined at a given ID .