empty() instead of isset() to check for database number