Removed redundant Boolean == checks in if