protected function assertIsArrayOrIterator($subject) { return (bool) (true === is_array($subject) || true === $subject instanceof \Iterator); }