Add if empty check for items and setting default value at 5