hasattr check for citation and annotations