Fixing the array.indexOf method check

Signed-off-by: Andrew Lowther <andy.lowther@mademedia.co.uk>
Merge pull request #1 from mademedia/master

Fix added onto the array.indexOf check