Might be better to check for the length of the string as a blank string wouldn't trigger this check. i.e. `if ([noteBody.length == 0])`