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