Checking value size before to access to element