* Prevent crash when attepting to reload an invalid module
720: for key, value in pairs(package.loaded[scriptName]) do
- package.loaded[scriptName] is expected to be a table, not all lua scripts return one
- if lua script does not provide a return value, true is implicitly returned instead, this results in an attempt to iterate over boolean value
reference: reference: https://www.lua.org/manual/5.1/manual.html#:~:text=Once%20a%20loader%20is%20found,of%20package.loaded%5Bmodname%5D.
* Fix formatting