why restrict by type? There are in-app payments too. I don't think you need this if statement at all though.