Use isEmpty instead of size

This was spotted by spotbugs.

Change-Id: I282b0e1f9f693e548c26a51519df50912b8a4297
1 file changed