Better use of is_null() and return().