Added a method isPurchased