you need to add ``continue``, otherwise it will reach the LogicException. A unit test using an array with valid data seems needed