[fix]: Use inArray instead of [].indexOf