Added a few useful checks concerning function declarations, definitions and calls