Check if ['database'] is set as this is optional