Nicer code for empty check