See if things are set before accessing.