Update check for undefined on attributes.