Eliminate redundant size check