then return an empty something. Usually this means returning [], so that your handling code can always be sure that it's getting back an array, and doesn't need special logic for the "nothing found" path.