[minor] Remove some redundant checks