[Fixes #21] Check for elements to update before attempting to update them