ts: Make check_function easier to read.
ts: Make check_function easier to read.

jesserayadkins/lily,FascinatedBox/lily,jesserayadkins/lily,jesserayadkins/lily,FascinatedBox/lily,FascinatedBox/lily,FascinatedBox/lily