return true if the specified state is the current one
State ID (see constants)
true if the specified state is the current one
isCurrent
state
return true if the specified state is the current one