laravel 5.4 check Array if record exists