How do I make sure a player can't pick up two objects at the same time?

It that case, may I suggest you completely discard what I suggested and simply add a single boolen variable instead. Query it when picking up an item and set it to true if successful.