Checks if the current view is empty, if so then the view will go invisible. Else the view will become visible