/** * @param $remotePath * @return array|bool|true */ protected function getDBDirectoryList($remotePath) { try { $list = $this->dropbox->getMetaData($remotePath); } catch (Exception $e) { if ($e instanceof Dropbox_Exception_NotFound) { $this->flashMessageContainer->add('Folder ' . $remotePath . ' not found in your dropbox.'); } return FALSE; } return $list; }