Add some helper functions to test if sensing component has an enemy or other unit.