added specialisation for nullptr testing