You can use id.nil? here