Make push and pull via local function and fire error on empty or full stack