changed ret of push to boolean check on stack length and index