Weapon: refactor 'bool canFire' into a function