You cannot have a function that returns two different things. If you can explain a bit, probably someone can suggest a better solution.