Remove needless duplicated check