Fixing typo, which might lead to NPE
Avoid unnecessary new Boolean(boolean) constructor invocations