Removed redundant equality check