protected function ensureDatabase($database) { if (strlen($database) === 0) { throw new OrientException('In order to perform the operation you must specify a database'); } }