Fix the nullability helper method