Rename none/empty to isNone/isEmpty variables

Rename none ti isNone and empty to isEmpty variables. It makes the code
easier to read.