<?php
$array_object = new \ArrayObject([]);
echo count($array_object); // echos 1 ?!?
echo count($this->getArrayCopy()); // echos the correct answer, 0
?>
Make it make sense. I've spent a few hours trying to figure out why simple tests were failing and had to look this up to figure this out.