Simplify negative nil return condition by using (when ...)