Add undefined check
Merge pull request #52 from nsue/refactor-onRemoteExistingBall

Add undefined check