Renamce check() to checkAccess() as there shouldn't be a method with the same name as the class, and fix the 3 other issues (hopefully)