Did you try

if arrayname.contains(word)?