@WebDust21, on the latest develop branch:
System.freeMemory() API to determine the amount of available RAM.