Bug 1812910: Needs to use is_array() before count() in PHP 7.2
Fixing up some more places, like elasticsearch results, where we are
trying to get a cound on a variable that is not an array
behatnotneeded
Change-Id: I09b809240f18892a187c5e5ed2a3d1756e39b247
Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz>