Fixed: Check if settings are undefined or null