I\'ve found several responses to this, but none pertaining to PHP (which is an extremely weak typed language):
With regards to PHP, is it appropriate to return
If there's really a problem then you should raise an error, otherwise if the criteria aren't met etc then return a blank array.