======================================= MongoDB\\Model\\DatabaseInfo::isEmpty() ======================================= .. default-domain:: mongodb .. contents:: On this page :local: :backlinks: none :depth: 1 :class: singlecol Definition ---------- .. phpmethod:: MongoDB\\Model\\DatabaseInfo::isEmpty() Return whether the database has any data. .. code-block:: php function isEmpty(): boolean Return Values ------------- A boolean indicating whether the database has any data. Examples -------- .. code-block:: php true]); var_dump($info->isEmpty()); The output would then resemble:: bool(true) See Also -------- - :manual:`listDatabases ` command reference in the MongoDB manual