Check for existence of attribute before reading it.