add magic contains method to FunctionDict class for in check