Using code sniffer to standardised the code.
Adding fallback for list attribute.