remove a redundant check