'Determine whether the stack contains the specified resource.'

def __contains__(self, key):

    if (self._resources is not None):
        return (key in self.resources)
    else:
        return (key in self.t[self.t.RESOURCES])
