public static function getFlashMessages($label = null, $delete = true) {
        if (!Atomik::has('session.__FLASH')) {
            return array();
        }
        
        if ($label === null) {
        	if ($delete) {
            	return Atomik::delete('session.__FLASH');
        	}
        	return Atomik::get('session.__FLASH');
        }
        
        if (!Atomik::has("session.__FLASH.$label")) {
            return array();
        }
        
        if ($delete) {
        	return Atomik::delete("session.__FLASH.$label");
        }
        return Atomik::get("session.__FLASH.$label");
    }