Update Module.php

refactored