Fixes has_key for retrieving keys

This commit fixes the has_key statement that was previously merged. The
key to check should be $remote_node.