OK, so the only problem with this change is that fitBounds will break if not given options. Also, don't surround the ternary operator condition in brackets.