it prevents the crash :)
not sure of the circumstances, possibly shouldn't be nil in the first place I suppose