There is nil so there is error. Why don't check if there is nil instead of getting nil?