Checking for Humanoid or AnimationController not working

So in my game the player fights bosses, bosses between character “Humanoid” and custom characters “AnimationControllers”

So when the player attacks I check if there is a boss nearby to take damage by checking for a Humanoid or AnimationController, the problem is the scripts stop at Humanoid.

For Example:

if v.Humanoid or v.AnimationController then

Error in the output says no Humanoid.

Can you provide the code? Also what is the error message in console?