So if (s.isEmpty()) { is slightly better. It is hard to know what "s" is, better use proper variable name.