has method is more strict test added to better handle numeric index