Added explicit null-check.