Should be 
````
getHandle().fromPlayer = (canPickup) ? 1 : 2;
````