Prevent access to undefined data