Make sure the parentFunction check stops at function declarations too.