Fixes a known issue where php 7.2 is 'noisy' if you try to count NULL - solution is to use an empty array