Check for empty and null cases if needing to assign a default template or admin