combined exists and writable into a single if-condition