Adding isWritable check