I have little confusion around how to check the $user
is a User object in Laravel.
$user = Apiato::call('User@FindUsersbytask', [$request->id]);
if($user) { // here i have to check weather the $user is a user object or not
Apiato::call('User@deleteuserTask', [$request->id]);
...