Refactoring: changed return types from bool to void
Functions/methods either returning true or throwing an exception can simply return void or throw an exception.
Functions/methods either returning true or throwing an exception can simply return void or throw an exception.