[RFC PATCH 2/6] Add a is_mounted helper