Checking empty string in reference attribute array