Trying to disable root combiner pickup

Hi I've been trying to disable the pickup of root combiners if the user is not the owner. I haven't been able to make it check for root combiner. It probably needs a simple fix, although I haven't been able to find it yet.

private object CanPickupEntity(BasePlayer player, BaseEntity entity)
{
	if(entity as electrical.combiner.deployed)
	{
		if(entity.OwnerID != 0 && entity.OwnerID != player.userID) 
		{	
			SendReply(player, "You cannot pickup a root combiner that doesn't belong to you!");
			return false;
		}
	return null;
	}
return null;
}
Whats the error?

Merged post

The first `return null` is unnecessary. 

electrical.combiner.deployed​
doesn't look like a class name, that looks like an asset path.
I'm not sure what is the class, it could be electrical.combiner, it seems like it hasn't been used much so far. I get: Failed To compile: Internal compiler error: Object reference not set to an instance of an object.
Change the first if statement to something like:
if (entity.ShortPrefabName == "electrical.combiner.deployed")​