Small improvment to isPremium function