I think would be better code practice to return an empty array if the purpose of the function is to return an array. And  not merge booleans and arrays as returning values.