Check that a constructor is defined