Add a check for blank view