empty check in hide