adding check function

adding a check function for easier control if emf records tries
to use memory outside the emf content.