Still, your example itself is bad. People who will see that are going to use unnecessary native by following your beautiful "example". It's a bad method and you lead people to a wrong usage of classname check. So, don't be approximative, change your "example", make a special for player and another for non-player entities. It would make more sense and would be helpful.