original_string: public function mbox_exists($name){
      if ( $this->is_connected() && !empty($name) ){
        $names = $this->get_all_names_mboxes();
        if ( !empty($names) && \in_array($name, $names) ){
          return true;
        }
      }
      return false;
    }
code: public function mbox_exists($name){
      if ( $this->is_connected() && !empty($name) ){
        $names = $this->get_all_names_mboxes();
        if ( !empty($names) && \in_array($name, $names) ){
          return true;
        }
      }
      return false;
    }
code_tokens: public function mbox_exists ( $ name ) { if ( $ this -> is_connected ( ) && ! empty ( $ name ) ) { $ names = $ this -> get_all_names_mboxes ( ) ; if ( ! empty ( $ names ) && \ in_array ( $ name , $ names ) ) { return true ; } } return false ; }
docstring: Check if a mailbox exists
  
  @param string $name The mailbox name
  @return bool
docstring_tokens: Check if a mailbox exists