Simple function to check ducktypes