Cleaned up tabs
Refactored

Called searchArrays function instead of using is_numeric and
array_search in compare function.