Bugfix: NA is coerced to integer so check for NA and not for integer