"a.IsActor is not a function" - Why?

Hello I have the following battle formula it's simple:

if(a.IsActor() && a.isStateAffected(66)){0;}else{150;}

This is an healing item. It should check if the one who uses it is an actor and if it's affected with a state. Unfortunelately as soon I use that item the game crashes with the message: "TypeError: a.IsActor is not a function" why does the programm believes that.
I looked at the "Battle Formula 101 thread" and definitely it was listed. What am I doing wrong?
You're misspelling it. It's not IsActor, with a capital I, it's isActor.

Incidentally...how would an enemy, a non-actor, be using an item? I don't see why that's useful.
a.isActor, "Is" should be lowercased

Edit: @ATT_Turan Ninja'd ;p
Oh shoot, you are right. God damnit. ^^"

Thank you very much. xd

Original thread: https://forums.rpgmakerweb.com/threads/a-isactor-is-not-a-function-why.147792/