GATEWAY-3367: Removed redundant condition check.