use nil? to check nil