Made has() function protected