Got caught by a silly typing mistake that caused a bit of head scratching until I tracked it down.
A common scenario is adding an element $y to an array $x
$x += $y
$x =+= $y
The function loaded but failed at run time.
Took a while to spot.