Use isEmpty instead of size isEqualTo 0, to get better error messages