(check_for_default): minor optimization and change return value.