Test for resp before using one of its properties.