Write logic slightly more succinctly.