'Make instance of a class callable.
If item belongs to current instance of a class, return it.
Otherwise, return 0.'

def __call__(self, item):

    item = sympify(item)
    if (item in self):
        return self[item]
    else:
        return 0
