check haml recursively