private function checkAttrExists($attribute)
    {
        foreach ($this->attributes as $attr => $options) {
            $this->ensureAttributes($attr, $options);
            if ($attr == $attribute) {
                return;
            }
        }
        throw new InvalidParamException();
    }
private function checkAttrExists($attribute)
    {
        foreach ($this->attributes as $attr => $options) {
            $this->ensureAttributes($attr, $options);
            if ($attr == $attribute) {
                return;
            }
        }
        throw new InvalidParamException();
    }
private function checkAttrExists ( $ attribute ) { foreach ( $ this -> attributes as $ attr => $ options ) { $ this -> ensureAttributes ( $ attr , $ options ) ; if ( $ attr == $ attribute ) { return ; } } throw new InvalidParamException ( ) ; }
Check isset attribute or not
@param string $attribute name of attribute
@throws InvalidParamException
Check isset attribute or not