How do i check if a gameobject is active?

Hi im trying to find out if in this case, if “death” is active… i am getting an error that is is obsolete… what do i do?

if(death.active)
{
scoreObject.GetComponent().AddScore();
Destroy(gameObject);
}

Use activeInHierarchy.