I would return an empty array so that the return value is always an array. This way, you don't need to change the calling code