Although it is one of a URL's most common elements, using WWW is unnecessary. The only reason WWW is in a URL is to identify the web address correctly (however, HTTP can also achieve this). Other than this, WWW has very little purpose; it is possible to create a functioning custom domain.