Refactor the attribute predicate methods

For all types other than string based types, this calculation ultimately
came down to whether or not we consider the value to be "false", and if
it's blank. For string types alone, "0" should be considered present.
This also allows us to remove the `number?` predicate from the type
objects.
I guess you are missing some tests here, no ? Looks good though, thanks! :+1: