added has_shell function to template model