Having the default below which you removed makes throwing this exception unnecessary. I guess I'm ok with the exception. Also, you have whitespace issues in the conditional:

`if ( !pushServerBaseURL ) {`