Check for existence of title attribute first.