Fixing the check to see if the url flag was passed