Added hasWriteAccess helper