Also need to check here to make sure we aren't trying to access a property of an undefined variable.