Yep good point. Added a check for it before using it.