If offered the option of writing a master's thesis, seriously consider taking it, as it can form the core of your first refereed journal article. Plan out a publishing trajectory to ensure that you have at least one sole-authored refereed journal article before you defend your dissertation.