Using cleaner method for array searching