doesn't matter that much here (the code is easy to understand), but feel free to write
  return (reference_compessibility != 0)