How do i check if an object contains a child?

I have a empty set as the players hand and when i equip something it makes it a child of the empty. how would i check to see if that empty has a child or not?

if(transform.childCount > 0)
{
// we have children!
}