check if readonly