unnecessary nullsafe check