return values as a comment it does not give me an idea of what is returning inside the values variable, besides that if you return an array with data normally the other case should be an empty array instead of False