Fixed missing scope bracket
Fix item checking to use correct functions