Refactor EntitySystem#check