laravel 5.5 check if record exists in Array