Remove redundant nil checks