':type nums: List[int]
:type k: int
:rtype: bool'

def checkSubarraySum(self, nums, k):

    count = 0
    lookup = {0: (-1)}
    for (i, num) in enumerate(nums):
        count += num
        if k:
            count %= k
        if (count in lookup):
            if ((i - lookup[count]) > 1):
                return True
        else:
            lookup[count] = i
    return False
