Use nil check on format instead of empty?

- empty? is not defined on NilClass