Changed checks to use empty function.