Added function for checking empty sectors