Handelt nil value properly