Update Module.php

You can not "break" from an if statement. You can only break from a loop.
If you want to use it to break from a loop in a calling function, you need to handle this by return value - or throw an exception.