Handle potential null value