public function get_sub_function($fn)
    {
      if (!isset($this->subfunctions))
        return false;

      foreach ($this->subfunctions->terms as $sfn) {
        $pred = $sfn->type . TitleUtility::toTitleCase($sfn->term);

        if ($pred == $fn)
          return $sfn;
       }

      return false;
    }
public function get_sub_function($fn)
    {
      if (!isset($this->subfunctions))
        return false;

      foreach ($this->subfunctions->terms as $sfn) {
        $pred = $sfn->type . TitleUtility::toTitleCase($sfn->term);

        if ($pred == $fn)
          return $sfn;
       }

      return false;
    }
public function get_sub_function ( $ fn ) { if ( ! isset ( $ this -> subfunctions ) ) return false ; foreach ( $ this -> subfunctions -> terms as $ sfn ) { $ pred = $ sfn -> type . TitleUtility :: toTitleCase ( $ sfn -> term ) ; if ( $ pred == $ fn ) return $ sfn ; } return false ; }
checks if a given term lands
in subfunctions

@param fn: full function name
checks if a given term lands in subfunctions