space between `if` and `(`

and same issue as above with null. focus remains in the middle of the page and users need to tab through all the DOM to get to the dialog.