checking for NULL before including base variables in API poll view