I found the error, when my mysql is empty i only return nothing, but the javascript need minimal json,
solution:
if(isset($array))
echo json_encode($array);
else
echo json_encode(array());
php return [] when mysql is empty and work fine the owner options.
thanks
best regards
Cesar Corsico