original_string: public function isValid( $name, $value = null )
      {
          if( !isset( $this->enums[$name] ) ) {
              return false;
          } elseif( $value === null ) {
              return true;
          }
          return !isset( $value ) || in_array( $value, $this->enums[$name] );
      }
code: public function isValid( $name, $value = null )
      {
          if( !isset( $this->enums[$name] ) ) {
              return false;
          } elseif( $value === null ) {
              return true;
          }
          return !isset( $value ) || in_array( $value, $this->enums[$name] );
      }
code_tokens: public function isValid ( $ name , $ value = null ) { if ( ! isset ( $ this -> enums [ $ name ] ) ) { return false ; } elseif ( $ value === null ) { return true ; } return ! isset ( $ value ) || in_array ( $ value , $ this -> enums [ $ name ] ) ; }
docstring: Is valid check
  @param string enum name
  @param string value
  @return bool
docstring_tokens: Is valid check