Model if(null) checks

Updating models to check if input is null
Module Controllers

getModuleController.php
updateModuleController.php
removal of extra curly bracket from moduleModel.php that was causing an
error.
Merge branches 'master' and 'master' of https://github.com/da1rren/Group-A
Merge branch 'master' of https://github.com/da1rren/Group-A