`( title === "" || title === undefined )` could be replaced with `!title`, once more below.