Detect body declaration correctly