Refact: redundant comparison