check if the addy is an array first before pop