Added isNilOrEmpty class method