Avoid access to nil values