#NEWLINE# def __contains__( self , item ) : #NEWLINE# #INDENT# '\n        Checks if the layer is inside the packet.\n\n        :param item: name of the layer\n        ' #NEWLINE# try : #NEWLINE# #INDENT# self [ item ] #NEWLINE# return True #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# return False