Maybe it will help someone else: I was trying to strip off the last part of an array using this section, more or less as follows:
<?php array_splice($array, $offset); ?>
Now it could occur in my code that <?php $offset === 0 ?>, in which case the array is returned as-is and not, as you might expect, an empty array because everything is stripped off. Obviously it is not really useful anyway to "strip off everything", but I was reminded of that the hard way and this may spare someone some time, hopefully.