Refactoring variable variable and testing the positive post status