Clean-up: remove `is_null` throughout the code base.
Clean-up: replace `sizeof()` by `count()`.
Merge pull request #475 from damz/pr/cleanups/6.x

Clean-up the code base (6.x) getting rid of is_null().