added in_array method for modules.