Add returnId to moduleExists method