Remove unnecessary check in conditional