Now checking if entity is defined before accessing .documentation