Fixed php 7.2 count() compatibility continued.