Checks for existing setting before using it and resolves #41