Add function to check is mount valid and use it