fixed notice in hasProxy function