Adding data checks to the author block
Created author title helper function