Made tag edit checking more readable.