level detection using non throwing methods