Add some checks to make sure we're not looking for nothing.