The inArray function was used only used in a single location. Therefore was no longer needed