Added custom function to check if snipmate would expand a snippet or
not.