added EMR check helper functions