safety if statment