Prevent crash on nil