def METHOD_NAME(self, item):
    """
    Args:
        item: Item to check
    Returns:
        bool: whether item can be bought
    """
    if item.cost == 'Coins':
        if item.price > self._currency:
            return False
        return True
    if self.config.GeneralShop_UseGems:
        if item.cost == 'Gems':
            if item.price > self.gems:
                return False
            return True
    return False