check if default is set instead of checking default value