I wonder if in case of errors we should return false instead of an empty array.