Check if settings are set before using them