Remove redundant check for null