Optimize check if DB_SERVER is empty