Validating apc key is not empty before set