Added safety wrapper for has method