Checks variable declarations.