Fixing bug where Request::has() would throw error because of trying to use trim if the data type was an array