added hasAuthor check