Remove unnecessary check for NULL