Removed an unnecessary Integer instantiation in a boolean test.

Signed-off-by: John May <john.wilkinsonmay@gmail.com>