How to check if an entity is a player?

I have a PlayerDeath Event in which I compare the killers name with a few tables. But in the case that a player has been killed by the world I must prevent that the code is executed. How can I check if an entity is a player?

Use ply:IsPlayer()

Thank you, that did the trick :smiley: