original_string: public function remove(string $id){
      if ( \bbn\str::is_uid($id) ){
        if ( $id_menu = $this->get_id_menu($id) ){
          if ( $this->pref->delete_bit($id) ){
            $this->delete_cache($id_menu);
            return true;
          }
        }
        else if ( $this->pref->delete($id) ){
          $this->options->delete_cache($this->from_path('menus'));
          return true;
        }
      }
      return false;
    }
code: public function remove(string $id){
      if ( \bbn\str::is_uid($id) ){
        if ( $id_menu = $this->get_id_menu($id) ){
          if ( $this->pref->delete_bit($id) ){
            $this->delete_cache($id_menu);
            return true;
          }
        }
        else if ( $this->pref->delete($id) ){
          $this->options->delete_cache($this->from_path('menus'));
          return true;
        }
      }
      return false;
    }
code_tokens: public function remove ( string $ id ) { if ( \ bbn \ str :: is_uid ( $ id ) ) { if ( $ id_menu = $ this -> get_id_menu ( $ id ) ) { if ( $ this -> pref -> delete_bit ( $ id ) ) { $ this -> delete_cache ( $ id_menu ) ; return true ; } } else if ( $ this -> pref -> delete ( $ id ) ) { $ this -> options -> delete_cache ( $ this -> from_path ( 'menus' ) ) ; return true ; } } return false ; }
docstring: Removes menu and deletes parent cache
  @param $id
  @return int|boolean
docstring_tokens: Removes menu and deletes parent cache