Consider using g:did_indent for signalling that you have finished initializing the indentation code. That's a fairly standard way of doing this (referenced here, for instance), used also by the standard indent files that are supplied with vim, and allows users a way to disable indenting selectively from scripts.