Since you made the effort of fixing many of them here you might want to make it at least consistent inside this file.
Here you've used "boolean" but "bool" is used later. So you could for example settle for "bool".