check for reference in view